/*
 * @Author: ZhanXie
 * @Date: 2020-05-19 16:51:19
 * @LastEditors: ZhanXie
 * @LastEditTime: 2020-05-20 14:14:57
 * @Description:
 * @FilePath: /webpack-cli/src/actions/countAction.js
 */


import { DECREMENT, INCREMENT, INCREMENT_ASYNC } from './actionType';

export const decrementCountAction = (data, callback) => ({
  type: DECREMENT,
  data,
  callback,
});

export const incrementCountAction = (data, callback) => ({
  type: INCREMENT,
  data,
  callback,
});

export const incrementAsyncCountAction = (data, callback) => ({
  type: INCREMENT_ASYNC,
  data,
  callback,
});
